package ticketManager.mailSenderServlet;

/**
 *
 * @author zb
 */
import java.util.TimerTask;

public class MyTask extends TimerTask {

    private SendEmail sendemail = new SendEmail();

  //  SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    @Override
    public void run() {
        sendemail.send();
        //   System.out.println(sdf.format(new Date()));
    }
}
